-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update dependency @anthropic-ai/sdk to v0.35.0 #235
Conversation
anthropic debug - [puLL-Merge] - anthropics/[email protected] Diffdiff --git .release-please-manifest.json .release-please-manifest.json
index 2053c67b..cb210381 100644
--- .release-please-manifest.json
+++ .release-please-manifest.json
@@ -1,5 +1,5 @@
{
- ".": "0.33.1",
- "packages/vertex-sdk": "0.6.1",
- "packages/bedrock-sdk": "0.12.0"
+ ".": "0.35.0",
+ "packages/vertex-sdk": "0.6.3",
+ "packages/bedrock-sdk": "0.12.2"
}
diff --git .stats.yml .stats.yml
index 19e9daeb..239e17b7 100644
--- .stats.yml
+++ .stats.yml
@@ -1,2 +1,2 @@
-configured_endpoints: 19
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-be055148d227480fcacc9086c37ac8009dcb487731069ada51af35044f65bee4.yml
+configured_endpoints: 21
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-fd67aea6883f1ee9e46f31a42d3940f0acb1749e787055bd9b9f278b20fa53ec.yml
diff --git CHANGELOG.md CHANGELOG.md
index a1a57c52..499e576c 100644
--- CHANGELOG.md
+++ CHANGELOG.md
@@ -1,5 +1,63 @@
# Changelog
+## 0.35.0 (2025-01-21)
+
+Full Changelog: [sdk-v0.34.0...sdk-v0.35.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.34.0...sdk-v0.35.0)
+
+### Features
+
+* add beta message streaming helpers ([#655](https://github.com/anthropics/anthropic-sdk-typescript/issues/655)) ([d7b5af1](https://github.com/anthropics/anthropic-sdk-typescript/commit/d7b5af1629dbcefdb7bfdca271ab497567830227))
+* **stream:** add `.withResponse()` ([#654](https://github.com/anthropics/anthropic-sdk-typescript/issues/654)) ([b54477f](https://github.com/anthropics/anthropic-sdk-typescript/commit/b54477f20c92db4c2c5ed89af5d46c36b035bf1e))
+* **streaming:** add `.request_id` getter ([4572478](https://github.com/anthropics/anthropic-sdk-typescript/commit/4572478266a67e12e32ffef69817cbc495943b1d))
+
+
+### Bug Fixes
+
+* **docs:** correct results return type ([#657](https://github.com/anthropics/anthropic-sdk-typescript/issues/657)) ([4e6d031](https://github.com/anthropics/anthropic-sdk-typescript/commit/4e6d031a41625ebf9c4311638e0c149179fcae0c))
+* **examples:** add token counting example ([2498e2e](https://github.com/anthropics/anthropic-sdk-typescript/commit/2498e2eaf49d66a664ed1fdcd7bbd331979cf5b2))
+* send correct Accept header for certain endpoints ([#651](https://github.com/anthropics/anthropic-sdk-typescript/issues/651)) ([17ffaeb](https://github.com/anthropics/anthropic-sdk-typescript/commit/17ffaeba5af48d13b08483973b82cfe1ae79347f))
+* **vertex:** add beta.messages.countTokens method ([51d3f23](https://github.com/anthropics/anthropic-sdk-typescript/commit/51d3f23a7cc1bea798cc8e4041e08114ebc3a4eb))
+
+
+### Chores
+
+* deprecate more models ([661f5f9](https://github.com/anthropics/anthropic-sdk-typescript/commit/661f5f9d9b24f3661df246dcf101dd9812b3e19e))
+* **internal:** add test ([#660](https://github.com/anthropics/anthropic-sdk-typescript/issues/660)) ([3ec7d1a](https://github.com/anthropics/anthropic-sdk-typescript/commit/3ec7d1a9eea30255b24cdb16c1a26705bdfea0ac))
+* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([43dd43c](https://github.com/anthropics/anthropic-sdk-typescript/commit/43dd43c4c8ab69d5a60e59473af7dff5f7799048))
+* **internal:** update examples ([#649](https://github.com/anthropics/anthropic-sdk-typescript/issues/649)) ([036a239](https://github.com/anthropics/anthropic-sdk-typescript/commit/036a239800fec7e6cbc439f125101d5475eae5b3))
+* **types:** add `| undefined` to client options properties ([#656](https://github.com/anthropics/anthropic-sdk-typescript/issues/656)) ([d642298](https://github.com/anthropics/anthropic-sdk-typescript/commit/d642298334529ff95b9d7ac497d548a6b04dbcfb))
+
+
+### Documentation
+
+* **readme:** fix misplaced period ([#650](https://github.com/anthropics/anthropic-sdk-typescript/issues/650)) ([8754744](https://github.com/anthropics/anthropic-sdk-typescript/commit/87547448c8b4bf69a61756af1f12927f33b68680))
+* **readme:** fix Request IDs example ([#659](https://github.com/anthropics/anthropic-sdk-typescript/issues/659)) ([6d3162d](https://github.com/anthropics/anthropic-sdk-typescript/commit/6d3162da1ddb964b75e575376f278468ba1ed9f5))
+
+## 0.34.0 (2024-12-20)
+
+Full Changelog: [sdk-v0.33.1...sdk-v0.34.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.33.1...sdk-v0.34.0)
+
+### Features
+
+* **api:** add message batch delete endpoint ([#640](https://github.com/anthropics/anthropic-sdk-typescript/issues/640)) ([54f7e1f](https://github.com/anthropics/anthropic-sdk-typescript/commit/54f7e1ffb9a2956ee27a4a715b84717aa681eb7c))
+
+
+### Bug Fixes
+
+* **client:** normalize method ([#639](https://github.com/anthropics/anthropic-sdk-typescript/issues/639)) ([384bb04](https://github.com/anthropics/anthropic-sdk-typescript/commit/384bb042dd854ed753c6bd8e25f522d0e042bfbf))
+
+
+### Chores
+
+* bump testing data uri ([#637](https://github.com/anthropics/anthropic-sdk-typescript/issues/637)) ([3f23530](https://github.com/anthropics/anthropic-sdk-typescript/commit/3f23530fb55d9fec7278967ea02600e44e9f58e2))
+* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([8057b1e](https://github.com/anthropics/anthropic-sdk-typescript/commit/8057b1eb67ccccee042a45f2efe53cccced15682))
+
+
+### Documentation
+
+* minor formatting changes ([#641](https://github.com/anthropics/anthropic-sdk-typescript/issues/641)) ([8b362ee](https://github.com/anthropics/anthropic-sdk-typescript/commit/8b362ee72954b31b4de920b35aed97255efa5e2e))
+* **readme:** add alpha callout ([#646](https://github.com/anthropics/anthropic-sdk-typescript/issues/646)) ([640304c](https://github.com/anthropics/anthropic-sdk-typescript/commit/640304c7c7e8bc67cbf799a646169736d89ad4c8))
+
## 0.33.1 (2024-12-17)
Full Changelog: [sdk-v0.33.0...sdk-v0.33.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.33.0...sdk-v0.33.1)
diff --git CONTRIBUTING.md CONTRIBUTING.md
index 9a869b0f..7d94b319 100644
--- CONTRIBUTING.md
+++ CONTRIBUTING.md
@@ -1,6 +1,6 @@
## Setting up the environment
-This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable).
+This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install).
Other package managers may work but are not officially supported for development.
To set up the repository, run:
@@ -29,10 +29,10 @@ All files in the `examples/` directory are not modified by the generator and can
…
\`\`\`
-```
-chmod +x examples/<your-example>.ts
+```sh
+$ chmod +x examples/<your-example>.ts
# run the example against your api
-yarn tsn -T examples/<your-example>.ts
+$ yarn tsn -T examples/<your-example>.ts Using the repository from sourcediff --git README.md README.md Anthropic TypeScript API Library
const message = await client.messages.create({ max_tokens: 1024, messages: [{ role: 'user', content: 'Hello, Claude' }], model: 'claude-3-5-sonnet-latest' });
-console.log(completion._request_id) // req_018EeWyXxfu5pfWkrYcMdjWG
+console.log(message._request_id) // req_018EeWyXxfu5pfWkrYcMdjWG @@ -486,7 +492,7 @@ await client.messages.create(
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. Types:
Models@@ -175,6 +177,7 @@ Methods: Types:
+import Anthropic from '@anthropic-ai/sdk';
+main();
Changelog+## 0.12.2 (2025-01-21) 0.12.0 (2024-12-17)Full Changelog: bedrock-sdk-v0.11.2...bedrock-sdk-v0.12.0
Changelog+## 0.6.3 (2025-01-21) 0.6.1 (2024-12-17)Full Changelog: vertex-sdk-v0.6.0...vertex-sdk-v0.6.1
/**
function makeBetaResource(client: AnthropicVertex): BetaResource {
/**
+export interface MessageStreamEvents {
+type MessageStreamEventListeners = {
+const JSON_BUF_PROPERTY = '__json_buf';
@@ -41,8 +41,8 @@ export class MessageStream implements AsyncIterable { controller: AbortController = new AbortController();
@@ -424,7 +456,7 @@ export class MessageStream implements AsyncIterable {
@@ -168,6 +198,20 @@ export class Batches extends APIResource { export class BetaMessageBatchesPage extends Page {} +export interface BetaDeletedMessageBatch {
export interface BetaMessageBatch { +export interface BatchDeleteParams {
export interface BatchCancelParams { export declare namespace Batches {
+const DEPRECATED_MODELS: {
export class Messages extends APIResource {
@@ -84,6 +117,8 @@ export class Messages extends APIResource { +export type BetaMessageStreamParams = MessageCreateParamsBase; @@ -1115,6 +1150,7 @@ export declare namespace Messages { export {
export class MessageBatchesPage extends Page {} +export interface DeletedMessageBatch {
export interface MessageBatch { export declare namespace Batches {
-type DeprecatedModelsType = {
|
bedrock debug - [puLL-Merge] - anthropics/[email protected] Diffdiff --git .release-please-manifest.json .release-please-manifest.json
index 2053c67b..cb210381 100644
--- .release-please-manifest.json
+++ .release-please-manifest.json
@@ -1,5 +1,5 @@
{
- ".": "0.33.1",
- "packages/vertex-sdk": "0.6.1",
- "packages/bedrock-sdk": "0.12.0"
+ ".": "0.35.0",
+ "packages/vertex-sdk": "0.6.3",
+ "packages/bedrock-sdk": "0.12.2"
}
diff --git .stats.yml .stats.yml
index 19e9daeb..239e17b7 100644
--- .stats.yml
+++ .stats.yml
@@ -1,2 +1,2 @@
-configured_endpoints: 19
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-be055148d227480fcacc9086c37ac8009dcb487731069ada51af35044f65bee4.yml
+configured_endpoints: 21
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-fd67aea6883f1ee9e46f31a42d3940f0acb1749e787055bd9b9f278b20fa53ec.yml
diff --git CHANGELOG.md CHANGELOG.md
index a1a57c52..499e576c 100644
--- CHANGELOG.md
+++ CHANGELOG.md
@@ -1,5 +1,63 @@
# Changelog
+## 0.35.0 (2025-01-21)
+
+Full Changelog: [sdk-v0.34.0...sdk-v0.35.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.34.0...sdk-v0.35.0)
+
+### Features
+
+* add beta message streaming helpers ([#655](https://github.com/anthropics/anthropic-sdk-typescript/issues/655)) ([d7b5af1](https://github.com/anthropics/anthropic-sdk-typescript/commit/d7b5af1629dbcefdb7bfdca271ab497567830227))
+* **stream:** add `.withResponse()` ([#654](https://github.com/anthropics/anthropic-sdk-typescript/issues/654)) ([b54477f](https://github.com/anthropics/anthropic-sdk-typescript/commit/b54477f20c92db4c2c5ed89af5d46c36b035bf1e))
+* **streaming:** add `.request_id` getter ([4572478](https://github.com/anthropics/anthropic-sdk-typescript/commit/4572478266a67e12e32ffef69817cbc495943b1d))
+
+
+### Bug Fixes
+
+* **docs:** correct results return type ([#657](https://github.com/anthropics/anthropic-sdk-typescript/issues/657)) ([4e6d031](https://github.com/anthropics/anthropic-sdk-typescript/commit/4e6d031a41625ebf9c4311638e0c149179fcae0c))
+* **examples:** add token counting example ([2498e2e](https://github.com/anthropics/anthropic-sdk-typescript/commit/2498e2eaf49d66a664ed1fdcd7bbd331979cf5b2))
+* send correct Accept header for certain endpoints ([#651](https://github.com/anthropics/anthropic-sdk-typescript/issues/651)) ([17ffaeb](https://github.com/anthropics/anthropic-sdk-typescript/commit/17ffaeba5af48d13b08483973b82cfe1ae79347f))
+* **vertex:** add beta.messages.countTokens method ([51d3f23](https://github.com/anthropics/anthropic-sdk-typescript/commit/51d3f23a7cc1bea798cc8e4041e08114ebc3a4eb))
+
+
+### Chores
+
+* deprecate more models ([661f5f9](https://github.com/anthropics/anthropic-sdk-typescript/commit/661f5f9d9b24f3661df246dcf101dd9812b3e19e))
+* **internal:** add test ([#660](https://github.com/anthropics/anthropic-sdk-typescript/issues/660)) ([3ec7d1a](https://github.com/anthropics/anthropic-sdk-typescript/commit/3ec7d1a9eea30255b24cdb16c1a26705bdfea0ac))
+* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([43dd43c](https://github.com/anthropics/anthropic-sdk-typescript/commit/43dd43c4c8ab69d5a60e59473af7dff5f7799048))
+* **internal:** update examples ([#649](https://github.com/anthropics/anthropic-sdk-typescript/issues/649)) ([036a239](https://github.com/anthropics/anthropic-sdk-typescript/commit/036a239800fec7e6cbc439f125101d5475eae5b3))
+* **types:** add `| undefined` to client options properties ([#656](https://github.com/anthropics/anthropic-sdk-typescript/issues/656)) ([d642298](https://github.com/anthropics/anthropic-sdk-typescript/commit/d642298334529ff95b9d7ac497d548a6b04dbcfb))
+
+
+### Documentation
+
+* **readme:** fix misplaced period ([#650](https://github.com/anthropics/anthropic-sdk-typescript/issues/650)) ([8754744](https://github.com/anthropics/anthropic-sdk-typescript/commit/87547448c8b4bf69a61756af1f12927f33b68680))
+* **readme:** fix Request IDs example ([#659](https://github.com/anthropics/anthropic-sdk-typescript/issues/659)) ([6d3162d](https://github.com/anthropics/anthropic-sdk-typescript/commit/6d3162da1ddb964b75e575376f278468ba1ed9f5))
+
+## 0.34.0 (2024-12-20)
+
+Full Changelog: [sdk-v0.33.1...sdk-v0.34.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.33.1...sdk-v0.34.0)
+
+### Features
+
+* **api:** add message batch delete endpoint ([#640](https://github.com/anthropics/anthropic-sdk-typescript/issues/640)) ([54f7e1f](https://github.com/anthropics/anthropic-sdk-typescript/commit/54f7e1ffb9a2956ee27a4a715b84717aa681eb7c))
+
+
+### Bug Fixes
+
+* **client:** normalize method ([#639](https://github.com/anthropics/anthropic-sdk-typescript/issues/639)) ([384bb04](https://github.com/anthropics/anthropic-sdk-typescript/commit/384bb042dd854ed753c6bd8e25f522d0e042bfbf))
+
+
+### Chores
+
+* bump testing data uri ([#637](https://github.com/anthropics/anthropic-sdk-typescript/issues/637)) ([3f23530](https://github.com/anthropics/anthropic-sdk-typescript/commit/3f23530fb55d9fec7278967ea02600e44e9f58e2))
+* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([8057b1e](https://github.com/anthropics/anthropic-sdk-typescript/commit/8057b1eb67ccccee042a45f2efe53cccced15682))
+
+
+### Documentation
+
+* minor formatting changes ([#641](https://github.com/anthropics/anthropic-sdk-typescript/issues/641)) ([8b362ee](https://github.com/anthropics/anthropic-sdk-typescript/commit/8b362ee72954b31b4de920b35aed97255efa5e2e))
+* **readme:** add alpha callout ([#646](https://github.com/anthropics/anthropic-sdk-typescript/issues/646)) ([640304c](https://github.com/anthropics/anthropic-sdk-typescript/commit/640304c7c7e8bc67cbf799a646169736d89ad4c8))
+
## 0.33.1 (2024-12-17)
Full Changelog: [sdk-v0.33.0...sdk-v0.33.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.33.0...sdk-v0.33.1)
diff --git CONTRIBUTING.md CONTRIBUTING.md
index 9a869b0f..7d94b319 100644
--- CONTRIBUTING.md
+++ CONTRIBUTING.md
@@ -1,6 +1,6 @@
## Setting up the environment
-This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable).
+This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install).
Other package managers may work but are not officially supported for development.
To set up the repository, run:
@@ -29,10 +29,10 @@ All files in the `examples/` directory are not modified by the generator and can
…
\`\`\`
-```
-chmod +x examples/<your-example>.ts
+```sh
+$ chmod +x examples/<your-example>.ts
# run the example against your api
-yarn tsn -T examples/<your-example>.ts
+$ yarn tsn -T examples/<your-example>.ts Using the repository from sourcediff --git README.md README.md Anthropic TypeScript API Library
const message = await client.messages.create({ max_tokens: 1024, messages: [{ role: 'user', content: 'Hello, Claude' }], model: 'claude-3-5-sonnet-latest' });
-console.log(completion._request_id) // req_018EeWyXxfu5pfWkrYcMdjWG
+console.log(message._request_id) // req_018EeWyXxfu5pfWkrYcMdjWG @@ -486,7 +492,7 @@ await client.messages.create(
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. Types:
Models@@ -175,6 +177,7 @@ Methods: Types:
+import Anthropic from '@anthropic-ai/sdk';
+main();
Changelog+## 0.12.2 (2025-01-21) 0.12.0 (2024-12-17)Full Changelog: bedrock-sdk-v0.11.2...bedrock-sdk-v0.12.0
Changelog+## 0.6.3 (2025-01-21) 0.6.1 (2024-12-17)Full Changelog: vertex-sdk-v0.6.0...vertex-sdk-v0.6.1
/**
function makeBetaResource(client: AnthropicVertex): BetaResource {
/**
+export interface MessageStreamEvents {
+type MessageStreamEventListeners = {
+const JSON_BUF_PROPERTY = '__json_buf';
@@ -41,8 +41,8 @@ export class MessageStream implements AsyncIterable { controller: AbortController = new AbortController();
@@ -424,7 +456,7 @@ export class MessageStream implements AsyncIterable {
@@ -168,6 +198,20 @@ export class Batches extends APIResource { export class BetaMessageBatchesPage extends Page {} +export interface BetaDeletedMessageBatch {
export interface BetaMessageBatch { +export interface BatchDeleteParams {
export interface BatchCancelParams { export declare namespace Batches {
+const DEPRECATED_MODELS: {
export class Messages extends APIResource {
@@ -84,6 +117,8 @@ export class Messages extends APIResource { +export type BetaMessageStreamParams = MessageCreateParamsBase; @@ -1115,6 +1150,7 @@ export declare namespace Messages { export {
export class MessageBatchesPage extends Page {} +export interface DeletedMessageBatch {
export interface MessageBatch { export declare namespace Batches {
-type DeprecatedModelsType = {
|
openai debug - [puLL-Merge] - anthropics/[email protected] Diffdiff --git .release-please-manifest.json .release-please-manifest.json
index 2053c67b..cb210381 100644
--- .release-please-manifest.json
+++ .release-please-manifest.json
@@ -1,5 +1,5 @@
{
- ".": "0.33.1",
- "packages/vertex-sdk": "0.6.1",
- "packages/bedrock-sdk": "0.12.0"
+ ".": "0.35.0",
+ "packages/vertex-sdk": "0.6.3",
+ "packages/bedrock-sdk": "0.12.2"
}
diff --git .stats.yml .stats.yml
index 19e9daeb..239e17b7 100644
--- .stats.yml
+++ .stats.yml
@@ -1,2 +1,2 @@
-configured_endpoints: 19
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-be055148d227480fcacc9086c37ac8009dcb487731069ada51af35044f65bee4.yml
+configured_endpoints: 21
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic-fd67aea6883f1ee9e46f31a42d3940f0acb1749e787055bd9b9f278b20fa53ec.yml
diff --git CHANGELOG.md CHANGELOG.md
index a1a57c52..499e576c 100644
--- CHANGELOG.md
+++ CHANGELOG.md
@@ -1,5 +1,63 @@
# Changelog
+## 0.35.0 (2025-01-21)
+
+Full Changelog: [sdk-v0.34.0...sdk-v0.35.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.34.0...sdk-v0.35.0)
+
+### Features
+
+* add beta message streaming helpers ([#655](https://github.com/anthropics/anthropic-sdk-typescript/issues/655)) ([d7b5af1](https://github.com/anthropics/anthropic-sdk-typescript/commit/d7b5af1629dbcefdb7bfdca271ab497567830227))
+* **stream:** add `.withResponse()` ([#654](https://github.com/anthropics/anthropic-sdk-typescript/issues/654)) ([b54477f](https://github.com/anthropics/anthropic-sdk-typescript/commit/b54477f20c92db4c2c5ed89af5d46c36b035bf1e))
+* **streaming:** add `.request_id` getter ([4572478](https://github.com/anthropics/anthropic-sdk-typescript/commit/4572478266a67e12e32ffef69817cbc495943b1d))
+
+
+### Bug Fixes
+
+* **docs:** correct results return type ([#657](https://github.com/anthropics/anthropic-sdk-typescript/issues/657)) ([4e6d031](https://github.com/anthropics/anthropic-sdk-typescript/commit/4e6d031a41625ebf9c4311638e0c149179fcae0c))
+* **examples:** add token counting example ([2498e2e](https://github.com/anthropics/anthropic-sdk-typescript/commit/2498e2eaf49d66a664ed1fdcd7bbd331979cf5b2))
+* send correct Accept header for certain endpoints ([#651](https://github.com/anthropics/anthropic-sdk-typescript/issues/651)) ([17ffaeb](https://github.com/anthropics/anthropic-sdk-typescript/commit/17ffaeba5af48d13b08483973b82cfe1ae79347f))
+* **vertex:** add beta.messages.countTokens method ([51d3f23](https://github.com/anthropics/anthropic-sdk-typescript/commit/51d3f23a7cc1bea798cc8e4041e08114ebc3a4eb))
+
+
+### Chores
+
+* deprecate more models ([661f5f9](https://github.com/anthropics/anthropic-sdk-typescript/commit/661f5f9d9b24f3661df246dcf101dd9812b3e19e))
+* **internal:** add test ([#660](https://github.com/anthropics/anthropic-sdk-typescript/issues/660)) ([3ec7d1a](https://github.com/anthropics/anthropic-sdk-typescript/commit/3ec7d1a9eea30255b24cdb16c1a26705bdfea0ac))
+* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([43dd43c](https://github.com/anthropics/anthropic-sdk-typescript/commit/43dd43c4c8ab69d5a60e59473af7dff5f7799048))
+* **internal:** update examples ([#649](https://github.com/anthropics/anthropic-sdk-typescript/issues/649)) ([036a239](https://github.com/anthropics/anthropic-sdk-typescript/commit/036a239800fec7e6cbc439f125101d5475eae5b3))
+* **types:** add `| undefined` to client options properties ([#656](https://github.com/anthropics/anthropic-sdk-typescript/issues/656)) ([d642298](https://github.com/anthropics/anthropic-sdk-typescript/commit/d642298334529ff95b9d7ac497d548a6b04dbcfb))
+
+
+### Documentation
+
+* **readme:** fix misplaced period ([#650](https://github.com/anthropics/anthropic-sdk-typescript/issues/650)) ([8754744](https://github.com/anthropics/anthropic-sdk-typescript/commit/87547448c8b4bf69a61756af1f12927f33b68680))
+* **readme:** fix Request IDs example ([#659](https://github.com/anthropics/anthropic-sdk-typescript/issues/659)) ([6d3162d](https://github.com/anthropics/anthropic-sdk-typescript/commit/6d3162da1ddb964b75e575376f278468ba1ed9f5))
+
+## 0.34.0 (2024-12-20)
+
+Full Changelog: [sdk-v0.33.1...sdk-v0.34.0](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.33.1...sdk-v0.34.0)
+
+### Features
+
+* **api:** add message batch delete endpoint ([#640](https://github.com/anthropics/anthropic-sdk-typescript/issues/640)) ([54f7e1f](https://github.com/anthropics/anthropic-sdk-typescript/commit/54f7e1ffb9a2956ee27a4a715b84717aa681eb7c))
+
+
+### Bug Fixes
+
+* **client:** normalize method ([#639](https://github.com/anthropics/anthropic-sdk-typescript/issues/639)) ([384bb04](https://github.com/anthropics/anthropic-sdk-typescript/commit/384bb042dd854ed753c6bd8e25f522d0e042bfbf))
+
+
+### Chores
+
+* bump testing data uri ([#637](https://github.com/anthropics/anthropic-sdk-typescript/issues/637)) ([3f23530](https://github.com/anthropics/anthropic-sdk-typescript/commit/3f23530fb55d9fec7278967ea02600e44e9f58e2))
+* **internal:** temporary revert commit ([#643](https://github.com/anthropics/anthropic-sdk-typescript/issues/643)) ([8057b1e](https://github.com/anthropics/anthropic-sdk-typescript/commit/8057b1eb67ccccee042a45f2efe53cccced15682))
+
+
+### Documentation
+
+* minor formatting changes ([#641](https://github.com/anthropics/anthropic-sdk-typescript/issues/641)) ([8b362ee](https://github.com/anthropics/anthropic-sdk-typescript/commit/8b362ee72954b31b4de920b35aed97255efa5e2e))
+* **readme:** add alpha callout ([#646](https://github.com/anthropics/anthropic-sdk-typescript/issues/646)) ([640304c](https://github.com/anthropics/anthropic-sdk-typescript/commit/640304c7c7e8bc67cbf799a646169736d89ad4c8))
+
## 0.33.1 (2024-12-17)
Full Changelog: [sdk-v0.33.0...sdk-v0.33.1](https://github.com/anthropics/anthropic-sdk-typescript/compare/sdk-v0.33.0...sdk-v0.33.1)
diff --git CONTRIBUTING.md CONTRIBUTING.md
index 9a869b0f..7d94b319 100644
--- CONTRIBUTING.md
+++ CONTRIBUTING.md
@@ -1,6 +1,6 @@
## Setting up the environment
-This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable).
+This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install).
Other package managers may work but are not officially supported for development.
To set up the repository, run:
@@ -29,10 +29,10 @@ All files in the `examples/` directory are not modified by the generator and can
…
\`\`\`
-```
-chmod +x examples/<your-example>.ts
+```sh
+$ chmod +x examples/<your-example>.ts
# run the example against your api
-yarn tsn -T examples/<your-example>.ts
+$ yarn tsn -T examples/<your-example>.ts Using the repository from sourcediff --git README.md README.md Anthropic TypeScript API Library
const message = await client.messages.create({ max_tokens: 1024, messages: [{ role: 'user', content: 'Hello, Claude' }], model: 'claude-3-5-sonnet-latest' });
-console.log(completion._request_id) // req_018EeWyXxfu5pfWkrYcMdjWG
+console.log(message._request_id) // req_018EeWyXxfu5pfWkrYcMdjWG @@ -486,7 +492,7 @@ await client.messages.create(
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. Types:
Models@@ -175,6 +177,7 @@ Methods: Types:
+import Anthropic from '@anthropic-ai/sdk';
+main();
Changelog+## 0.12.2 (2025-01-21) 0.12.0 (2024-12-17)Full Changelog: bedrock-sdk-v0.11.2...bedrock-sdk-v0.12.0
Changelog+## 0.6.3 (2025-01-21) 0.6.1 (2024-12-17)Full Changelog: vertex-sdk-v0.6.0...vertex-sdk-v0.6.1
/**
function makeBetaResource(client: AnthropicVertex): BetaResource {
/**
+export interface MessageStreamEvents {
+type MessageStreamEventListeners = {
+const JSON_BUF_PROPERTY = '__json_buf';
@@ -41,8 +41,8 @@ export class MessageStream implements AsyncIterable { controller: AbortController = new AbortController();
@@ -424,7 +456,7 @@ export class MessageStream implements AsyncIterable {
@@ -168,6 +198,20 @@ export class Batches extends APIResource { export class BetaMessageBatchesPage extends Page {} +export interface BetaDeletedMessageBatch {
export interface BetaMessageBatch { +export interface BatchDeleteParams {
export interface BatchCancelParams { export declare namespace Batches {
+const DEPRECATED_MODELS: {
export class Messages extends APIResource {
@@ -84,6 +117,8 @@ export class Messages extends APIResource { +export type BetaMessageStreamParams = MessageCreateParamsBase; @@ -1115,6 +1150,7 @@ export declare namespace Messages { export {
export class MessageBatchesPage extends Page {} +export interface DeletedMessageBatch {
export interface MessageBatch { export declare namespace Batches {
-type DeprecatedModelsType = {
|
This PR contains the following updates:
0.33.1
->0.35.0
Release Notes
anthropics/anthropic-sdk-typescript (@anthropic-ai/sdk)
v0.35.0
Full Changelog: sdk-v0.34.0...sdk-v0.35.0
Features
.withResponse()
(#654) (b54477f).request_id
getter (4572478)Bug Fixes
Chores
| undefined
to client options properties (#656) (d642298)Documentation
Configuration
📅 Schedule: Branch creation - "* 0-4 * * 3" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.